<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'customers-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'loginname'); ?>
		<?php echo $form->textField($model,'loginname',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'loginname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nick'); ?>
		<?php echo $form->textField($model,'nick',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'nick'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'realname'); ?>
		<?php echo $form->textField($model,'realname',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'realname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flag'); ?>
		<?php echo $form->textField($model,'flag'); ?>
		<?php echo $form->error($model,'flag'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'jointime'); ?>
		<?php echo $form->textField($model,'jointime'); ?>
		<?php echo $form->error($model,'jointime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'balance'); ?>
		<?php echo $form->textField($model,'balance'); ?>
		<?php echo $form->error($model,'balance'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lastlogintime'); ?>
		<?php echo $form->textField($model,'lastlogintime'); ?>
		<?php echo $form->error($model,'lastlogintime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lastloginip'); ?>
		<?php echo $form->textField($model,'lastloginip',array('size'=>24,'maxlength'=>24)); ?>
		<?php echo $form->error($model,'lastloginip'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'logintimes'); ?>
		<?php echo $form->textField($model,'logintimes',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'logintimes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'vip'); ?>
		<?php echo $form->textField($model,'vip'); ?>
		<?php echo $form->error($model,'vip'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'credit_level'); ?>
		<?php echo $form->textField($model,'credit_level'); ?>
		<?php echo $form->error($model,'credit_level'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->